#ifndef InStreamImpl_H
#define InStreamImpl_H

#include "common_types.h"
#include "jni_api.h"

class InStreamImpl : public webrtc::InStream, public JniCallbackGlobalNew
{
public:
	InStreamImpl(void);
	~InStreamImpl(void);

protected:	//JniCallbackBase
	virtual bool init_jni(JNIEnv* env);

public:
	virtual int Read(void *buf,int len);
	virtual int Rewind();

protected:
	jmethodID m_mid_Read;
	jmethodID m_mid_Rewind;
};

#endif //!InStreamImpl_H

